import { ArbitratorStatisticSchema } from '@components/schema/arbitrator'
import { ColumnsType } from 'antd/es/table'

export function getColumn (): ColumnsType<ArbitratorStatisticSchema> {
  const columns: ColumnsType<ArbitratorStatisticSchema> = [
    {
      title: '序号',
      dataIndex: 'orderno',
      key: 'orderno',
      width: 80
    },
    {
      title: '姓名',
      dataIndex: 'name',
      key: 'name',
      width: 120
    },
    {
      title: '常办案由',
      dataIndex: 'cause_action',
      key: 'cause_action'
    },
    {
      title: '常配合秘书',
      dataIndex: 'processer',
      key: 'processer'
    },
    {
      title: '结案平均天数',
      dataIndex: 'avg_trial_limit',
      key: 'avg_trial_limit',
      width: 140,
      sorter: true
    },
    {
      title: '担任首席',
      dataIndex: 'caseon01',
      key: 'caseon01',
      width: 120,
      sorter: true
    },
    {
      title: '边裁',
      dataIndex: 'caseon10',
      key: 'caseon_10',
      width: 100,
      sorter: true
    },
    {
      title: '独任',
      dataIndex: 'caseon02',
      key: 'caseon_02',
      width: 100,
      sorter: true
    },
    {
      title: '案件数',
      dataIndex: 'caseon_all',
      key: 'caseon_all',
      width: 100,
      sorter: true
    }
  ]
  return columns
}
